<?php
namespace cosocket\application\services;

use cosocket\application\repositories\UserRepository;
use cosocket\system\base\Service;
use cosocket\system\database\pools\MysqlPool;
use cosocket\system\Debug;

class UserService extends Service
{

    public function init()
    {
        parent::init();
    }

    public function login()
    {
        $userRepository = new UserRepository();
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        $user = $userRepository->loadUser(1);
        Debug::info($user);
        return $user;
    }
}
